import {getAction,postAction,putAction,deleteAction} from "@/api/manage";
export const UserList=(param)=>{return getAction('users/list',param);}
export const AddUser=(data)=>{return postAction('users/add',data);}
export const GetById=(id)=>{return getAction('users/get/'+id,null);}
export const UserDelete=(id)=>{return deleteAction('users/delete/'+id,null);}
export const UserEdit=(data)=>{return putAction('users/edit/',data);}
export const AddHouse=(data)=>{return postAction('house/add',data);}
export const HouseDelete=(id) =>{return deleteAction('house/delete/'+id,null);}
export const HouseEdit=(data)=>{return putAction('house/edit/',data);}
export const PictureAdd=(data)=>{return postAction('picture/add',data);}
export const PictureDelete=(param)=>{return deleteAction('picture/delete',param);}
export const FileDelete=(flag)=>{return deleteAction('files/delete/'+flag,null);}
export const GetPhoneByUserName=(param)=>{return getAction('users/phone',param)}
export const GetPhoneByManagerName=(param)=>{return getAction('manager/phone',param)}
